<?php 
header("Content-Type:text/html;charset=utf-8");
include "../inc/page.class.php";
include_once '../inc/conn.php';
require '../inc/checkdate.php';
date_default_timezone_set('PRC');

?>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>oat</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>


<body>
<?php 
/* 定义一个显示用户信息的方法 */
$query_str="select * from message";
$result_all=$oa->query($query_str);
$total=mysql_num_rows($result_all);
$num=10;

$page=new Page($total, $num, "&id");
$dis_page='<table><tr><td align="left" width="600">'.$page->fpage(array(0,2)).'</td><td align="right" width="500">'.$page->fpage(array(4,5,6,7,8))."</td></tr></table>";
if(!empty($_GET['id'])){
	$tid=$_GET['id'];
	$getsql="select * from message where message_id=".$tid;
	$result = $oa->query($getsql);
	$row = mysql_fetch_array($result);
	$message_title = $row['message_title'];
	$send_time = $row['send_time'];
	$receiver       = $row['receiver'];
	$content    = $row['message_content'];
?>
<form name="fom" id="fom" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
    <td height="30">      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="62" background="../images/nav04.gif">
            
		   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="21">&nbsp;</td>
			  </tr>
          </table></td>
        </tr>
    </table></td></tr>
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
         
              <tr>
                <TD height="40" class="font42"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
                  <tr>
                    <td height="20" colspan="2" bgcolor="#EEEEEE"class="tablestyle_title"><div align="center" style="font-size:16px">消息明细列表</div></td>
                  </tr>
                  <tr bgcolor="#FFFFFF" height="20">
                    <td width="16%" align="right">消息标题:</td>
                    <td width="84%"><?php echo $message_title; ?></td>
                  </tr>
                  
                  <tr bgcolor="#FFFFFF">
                    <td align="right">接收人:</td>
                    <td><?php echo $receiver; ?></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="right">发送时间:</td>
                    <td><?php echo date("Y-m-d",$send_time);?></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="right" height="80">消息内容:</td>
                    <td> <?php echo $content;?></td>
                  </tr>
                </table></TD>
			
              </tr>
			  <tr>
			  	<TD><?php echo $dis_page; ?></td>
        </tr>
      </table>
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6"><img src="../images/spacer.gif" width="1" height="1" /></td>
        </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</form>
<?php }?>
</body>
</html>
